import 'dart:convert';
/// title : "hi1"
/// deviceId : 1
/// errNum : 1
/// param : 50
/// totalNum : 6571
/// firstErrNum : 4855
/// errRatio : "1‱"
/// errList : [{"errIndex":4855,"errNum":1,"errTime":"14:14:18 260"}]

StartUpBean startUpBeanFromJson(String str) => StartUpBean.fromJson(json.decode(str));
String startUpBeanToJson(StartUpBean data) => json.encode(data.toJson());
class StartUpBean {
  StartUpBean({
      this.title, 
      this.deviceId, 
      this.errNum, 
      this.param, 
      this.totalNum, 
      this.firstErrNum,
      this.errRatio, 
      this.errList,});

  StartUpBean.fromJson(dynamic json) {
    title = json['title'];
    deviceId = json['deviceId'];
    errNum = json['errNum'];
    param = json['param'];
    totalNum = json['totalNum'];
    firstErrNum = json['firstErrNum'];
    errRatio = json['errRatio'];
    if (json['errList'] != null) {
      errList = [];
      json['errList'].forEach((v) {
        errList?.add(ErrList.fromJson(v));
      });
    }
  }
  String? title;
  int? deviceId;
  int? errNum;
  int? param;
  int? totalNum;
  int? firstErrNum;
  String? errRatio;
  List<ErrList>? errList;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['title'] = title;
    map['deviceId'] = deviceId;
    map['errNum'] = errNum;
    map['param'] = param;
    map['totalNum'] = totalNum;
    map['firstErrNum'] = firstErrNum;
    map['errRatio'] = errRatio;
    if (errList != null) {
      map['errList'] = errList?.map((v) => v.toJson()).toList();
    }
    return map;
  }

}

/// errIndex : 4855
/// errNum : 1
/// errTime : "14:14:18 260"

ErrList errListFromJson(String str) => ErrList.fromJson(json.decode(str));
String errListToJson(ErrList data) => json.encode(data.toJson());
class ErrList {
  ErrList({
      this.errIndex, 
      this.errNum, 
      this.errTime,});

  ErrList.fromJson(dynamic json) {
    errIndex = json['errIndex'];
    errNum = json['errNum'];
    errTime = json['errTime'];
  }
  int? errIndex;
  int? errNum;
  String? errTime;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['errIndex'] = errIndex;
    map['errNum'] = errNum;
    map['errTime'] = errTime;
    return map;
  }

}